package mju.cxf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mju.cxf.dto.SalesDTO;
import mju.cxf.entity.Sales;

public interface SalesService extends IService<Sales> {
//    Page<Sales> selectPageByName(String name, int current, int size);

    boolean saveSales(SalesDTO salesDTO);

    Page<SalesDTO> selectPageByNameAndState(String name, Integer state, int current, int size);

    boolean deleteSales(Integer id);
    Page<SalesDTO> selectPageByName(String name, int current, int size);
    long salesInventory(int productId, int specificationId);

    boolean updateSales(SalesDTO salesDTO);
    Sales selectSpecifications(Integer id);

    Sales selectOrderNumber(String OrderNumber);
}
